load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "sessiontest_test",
    timeout = "short",
    srcs = [
        "main_test.go",
        "session_test.go",
    ],
    flaky = True,
    race = "on",
    shard_count = 50,
    deps = [
        "//config",
        "//domain",
        "//expression",
        "//kv",
        "//parser/ast",
        "//parser/auth",
        "//parser/format",
        "//parser/model",
        "//parser/mysql",
        "//parser/terror",
        "//privilege/privileges",
        "//session",
        "//sessionctx",
        "//sessionctx/variable",
        "//store/copr",
        "//store/mockstore",
        "//table/tables",
        "//testkit",
        "//testkit/testmain",
        "//testkit/testsetup",
        "//testkit/testutil",
        "//types",
        "//util",
        "//util/memory",
        "//util/sqlexec",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_kvproto//pkg/coprocessor",
        "@com_github_pingcap_kvproto//pkg/kvrpcpb",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//tikv",
        "@com_github_tikv_client_go_v2//tikvrpc",
        "@com_github_tikv_client_go_v2//tikvrpc/interceptor",
        "@org_uber_go_goleak//:goleak",
    ],
)
